#DayDayUpQ4.py
def f(x):
    dayup= 1
    for i in range(365):
        if i % 7 in [6,0]:
            dayup=dayup*(1-0.01)
        else:
            dayup=dayup*(1+x)
        return x
x=0.01
while f(x)<37.78:
  x+=0.001
print("工作日的努力参数是：{:.3f} ".format(x))

